<?php

namespace App\Http\Requests\Admin\Customer\SunHungKai;

use App\Http\Requests\ApiRequest;
use Illuminate\Http\UploadedFile;

/**
* @property string company_name
* @property UploadedFile logo
* @property string description
* @property string category_id
* @property UploadedFile product_image
* @property string product_price
*/

class CompanyManageUpdateRequest extends ApiRequest
{
    /**
     * Determine if the user is authorized to make this request.
     *
     * @return bool
     */
    public function authorize()
    {
        return true;
    }

    /**
     * Get the validation rules that apply to the request.
     *
     * @return array
     */
    public function rules()
    {
        return [
            'company_name'  => 'required|string',
//            'logo'          => 'nullable|image|max:2048',
            'description'   => 'required|string',
            'category_id'   => 'required|int|min:1',
            'product_image' => 'nullable',
            'product_price' => 'required|numeric|min:0.01'
        ];
    }
}
